package com.moonshineproject.events
{
	import flash.events.Event;

	import mx.controls.Menu;

	public class MenuEvent extends Event
	{
		private var _data:Object

		public static const ITEM_SELECTED:String = "itemSelected";

		public function MenuEvent(type:String,
			bubbles:Boolean=false, cancelable:Boolean=false,
			data:Object=null)
		{
			super(type, bubbles, cancelable);
			_data = data;
		}

		public function get data():Object
		{
			return _data;
		}

		override public function clone():Event
		{
			return new MenuEvent(type, bubbles, cancelable, data);
		}
	}
}